@extends('admin.common.layout.index')
@section('module')
@inject('modules', 'App\Http\Controllers\admin\ModuleController')
<li>
	@foreach($modules->index() as $k=>$v)
    	<a href="{{$v['m_url']}}" >{!!$v['m_style']!!}{{$v['m_name']}}</a>
    	
    	
        @if($modules->getByPid($v['id']))
            <ul>
            @foreach($modules->getByPid($v['id']) as $kk=>$vv)
            <li><a href="{{$vv['m_url']}}">{!!$vv['m_style']!!}{{$vv['m_name']}}</a></li>
            @endforeach
            </ul>
    	
        @endif
    	
    @endforeach
</li>
@endsection